<div class="widget am-cf">
    <div class="widget-body  am-fr">
            <form class="am-form tpl-form-line-form" data-am-validator id="formDoSubmitDialog">
              <input type="hidden" name="Id" id="Id" value="{{.m.Id}}">
              <div class="am-form-group">
                  <label class="am-u-sm-3 am-form-label">项目名称：</label>
                  <div class="am-u-sm-9">
                    <input name="ProductName" type="text" id="ProductName"  placeholder="长度不超过80" maxlength="80" value="{{.m.ProductName}}" required/>
                  </div>
              </div>
              <div class="am-form-group">
                    <label class="am-u-sm-3 am-form-label">单位：</label>
                    <div class="am-u-sm-9">
                        <input name="Unit" type="text" id="Unit"  placeholder="长度不超过20" maxlength="20" value="{{.m.Unit}}" required/>
                    </div>
              </div>
              {{ if .m.Id }}
              {{else}}
              <div class="am-form-group">
                  <label class="am-u-sm-3 am-form-label">执行价格：</label>
                  <div class="am-u-sm-9">
                      <input name="UnitPrice" type="number" id="UnitPrice"  placeholder="长度不超过80" maxlength="80" value="{{.m.UnitPrice}}" required/>
                  </div>
              </div>
                {{end}}


             <div class="am-form-group">
                  <label class="am-u-sm-3 am-form-label"></label>
                  <div class="am-u-sm-9">
                    <button class="am-btn am-btn-secondary" type="submit">确认提交</button>
                    <button class="am-btn am-btn-default" type="reset">重置</button>
                  </div>
              </div>
            </form>
    </div>
</div>